﻿export default [
  {
    path: '/',
    redirect: '/welcome',
  },
  // 首页
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
    access: 'canWelcome',
  },
  // 用户中心
  {
    path: '/user',
    layout: false,
    routes: [
      // 登录
      {
        path: '/user/login',
        name: 'login',
        component: './user/Login',
      },
    ],
    access: 'canUser',
  },
  // 404
  {
    component: './exception/404',
  },
];
